package com.foreveross.proxyip.entity;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

import org.hibernate.annotations.GenericGenerator;

import com.foreveross.proxyip.infra.base.ddd.domain.BaseEntity;
import com.foreveross.proxyip.infra.cache.IBufferCacheEntity;


/**
 * The persistent class for the pi_extract_log database table.
 * 
 */
@Entity
@Table(name="pi_extract_log")
public class ExtractLogEntity extends BaseEntity  implements IBufferCacheEntity {
	private static final long serialVersionUID = 1L;

	@GeneratedValue(generator="idGenerator") //使用uuid的生成策略
	@GenericGenerator(name="idGenerator", strategy="uuid") //这个是hibernate的注解
	@Id
	private String id;

	@Temporal(TemporalType.TIMESTAMP)
	@Column(name="begin_time")
	private Date beginTime;

	@Temporal(TemporalType.TIMESTAMP)
	@Column(name="create_time")
	private Date createTime;

	@Temporal(TemporalType.TIMESTAMP)
	@Column(name="end_time")
	private Date endTime;

	@Column(name="expend_time")
	private Long expendTime;

	@Column(name="extract_mode")
	private String extractMode;

	@Column(name="extract_other_message")
	private String extractOtherMessage;
	
	@Column(name="extract_num")
	private Integer extractNum;
	@Column(name="actual_num")
	private Integer actualNum;
	
	private Integer state;

	public ExtractLogEntity() {
	}

	public String getId() {
		return this.id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public Date getBeginTime() {
		return this.beginTime;
	}

	public void setBeginTime(Date beginTime) {
		this.beginTime = beginTime;
	}

	public Date getCreateTime() {
		return this.createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	public Date getEndTime() {
		return this.endTime;
	}

	public void setEndTime(Date endTime) {
		this.endTime = endTime;
	}

	public Long getExpendTime() {
		return this.expendTime;
	}

	public void setExpendTime(Long expendTime) {
		this.expendTime = expendTime;
	}

	public String getExtractMode() {
		return this.extractMode;
	}

	public void setExtractMode(String extractMode) {
		this.extractMode = extractMode;
	}

	public String getExtractOtherMessage() {
		return this.extractOtherMessage;
	}

	public void setExtractOtherMessage(String extractOtherMessage) {
		this.extractOtherMessage = extractOtherMessage;
	}

	public Integer getExtractNum() {
		return extractNum;
	}

	public void setExtractNum(Integer extractNum) {
		this.extractNum = extractNum;
	}
	

	public Integer getActualNum() {
		return actualNum;
	}

	public void setActualNum(Integer actualNum) {
		this.actualNum = actualNum;
	}

	public Integer getState() {
		return state;
	}

	public void setState(Integer state) {
		this.state = state;
	}
	
}